 |
 |
 |
 |
#151155 - 04/13/02 07:48 AM
[6.3.x] [beta] Chat Mod 1.2
|
Admin / Code Breaker
Registered: 03/24/01
Posts: 7396
|
My first mod, ported to 6.3 Here we go: Name: Chat Mod Description: Lets you chat with jIRC. It has full CP support, it's 100% wordletized, it automatically gets the nick of the user/GuestXXXXX (5 random digits) if it's a guest, replaces smilies with real smilies, shows how many people are currently chatting and even invites people to the chatroom (by Recent Visitors, thanks to Olson). Demo: http://www.lkworld.com Link: ZIP File or MultiHack File Requirements: UBB™ 6.3.0 Beta Release 1.0 , Mod Wordlets , jPilot License (unless you want to see an "unregistered" line after every line) Number of downloads: [img]http://www.ubbdev.com/lk/num.php?s=chat.zip,chat.mhp[/img] Special thanks to: Ryan Olson for Invitation Script, Brett (raiyan) for JavaScript idea, dj_rava for the Admin Command Buttons idea and Troy for MultiHack, hosting and supporting me all the way  . Screenshots: Forum Summary , Chat Window , CP
_________________________
My Hacks Page (will be back with UBB 7!) UBBDev - We put the class into UBB.classic!
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#151164 - 04/14/02 05:34 PM
Re: [6.3.x] [beta] Chat Mod 1.2
|
Member
Registered: 06/02/01
Posts: 285
Loc: Florida
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#151166 - 04/20/02 11:34 AM
Re: [6.3.x] [beta] Chat Mod 1.2
|
Member
Registered: 01/28/01
Posts: 45
Loc: Manassas, Virginia
|
Where it says to look for this...
</font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">quote:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif"> sub OpenFileAsVar { push (@openedfiles, $_[0]); local (*FILE); local ($str);
if (-e "$_[0]") { my $handle = $filehandle->open('file', 'readonly', $_[0]); $str = $handle->readfile(); $filehandle->close($handle); } else { &CheckCachedFile($_[0]); } chomp($str); </font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">It is actually:
</font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">quote:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif"> push (@openedfiles, $_[0]); local (*FILE); local ($str);
if (&FileExists($_[0])) { my $handle = $filehandle->open('file', 'readonly', $_[0]); $str = $handle->readfile(); $filehandle->close($handle); } else { &CheckCachedFile($_[0]); } chomp($str); </font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">The part that is different:
In your code you have
</font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">quote:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif"> if (-e "$_[0]") { </font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">In the ubb 6.3X file it is:
</font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">quote:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif"> if (&FileExists($_[0])) { </font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">At least it was that way for me.
_________________________
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|